import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsString } from 'class-validator';

export class GetSubcode {

    //当前页
    @IsNumber()
    @ApiProperty({ description: '当前页', example: 1 })
    page: number

    //活码id
    @IsString()
    @ApiProperty({ description: '活码id' })
    id: string

}

export class ListIp {

    //当前页
    @IsNumber()
    @ApiProperty({ description: '当前页', example: 1 })
    page: number

    //活码id
    @IsString()
    @ApiProperty({ description: '子码id' })
    id: string

}